.chat-container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;

  .chat-content {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    background-color: #f8f8f8;
    padding: 20rpx 20rpx;
    box-sizing: border-box;

    .content-card {
      display: flex;
      justify-content: flex-start;

      &:not(:last-child) {
        margin-bottom: 30rpx;
      }

      .card-left,
      .card-right {
        width: 80rpx;
        height: 80rpx;

        .card-image {
          width: 100%;
          height: 100%;
          background-color: #fff;
          border-radius: 12rpx;
          overflow: hidden;

          image {
            width: 100%;
            height: 100%;
          }
        }
      }

      .content-container {
        display: flex;
        flex-direction: column;
        max-width: 490rpx;

        .user-name {
          position: relative;
          left: 35rpx;
          margin-bottom: 5rpx;
          font-family: 苹方-简, 苹方-简;
          font-weight: normal;
          font-size: 22rpx;
          color: #707070;
          text-align: left;
          font-style: normal;
          text-transform: none;
        }

        .card-center {
          max-width: 490rpx;
          margin: 0 30rpx;
          border-radius: 12rpx;
          background-color: #fff;
          position: relative;
          padding: 20rpx 20rpx;
          box-sizing: border-box;
          font-size: 32rpx;
          line-height: 44rpx;
          word-break: break-all;

          .arrow-content {
            position: absolute;
            left: -16rpx;
            top: 26rpx;
            width: 0;
            height: 0;
            border-top: 8px solid transparent;
            border-bottom: 8px solid transparent;
            left: -16rpx;
            border-right: 8px solid #fff;
            color: #141414;
          }

          .card-txt {
            color: #fff;
          }

          .card-href {
            .card-txt {
              color: #222;
            }

            .href-p {
            }

            .href-ul {
              margin-bottom: 20rpx;

              .href-li {
                color: #64679d;
                font-size: 30rpx;
              }
            }
          }
        }
      }

      &.card-content-2 {
        justify-content: flex-end;

        .card-center {
          $customColor: #B90303;
          background-color: $customColor;
          word-break: break-all;

          .arrow-content {
            left: unset;
            border-right: unset;
            right: -16rpx;
            border-left: 8px solid $customColor;
          }
        }
      }
    }

    .content-loading {
      width: 100%;
      line-height: 60rpx;
      color: #ccc;
      font-size: 28rpx;
      text-align: center;
    }
  }

  .chat-tools {
    width: 100%;
    padding: 10rpx 0rpx;
    background-color: #fff;
    color: #333;

    .tools-textarea {
      width: 100%;
      display: flex;
      justify-content: center;

      .tools-left {
      }

      .tools-center {
        flex: 1;
      }

      .tools-left,
      .tools-right {
        margin: 0 15rpx;
        height: 80rpx;
        display: flex;
        justify-content: center;
        align-items: center;

        .iconfont {
          font-size: 60rpx;
          height: 60rpx;
          width: 100rpx;
        }
      }

      .tools-right {
        .right-send {
          height: 60rpx;
          width: 100rpx;
          border-radius: 8rpx;
          background-color: #D81E06;
          color: #fff;
          font-size: 28rpx;
          text-align: center;
          line-height: 60rpx;
        }
      }
    }

    .tools-opts {
      height: 20vh;

      .opts-fontsize {
        width: 100%;
        padding: 0 30rpx;
        display: flex;
        align-items: center;

        .fontsize-label {
          font-size: 32rpx;
          color: #333;
          font-weight: bold;
          margin-right: 20rpx;
        }

        .fontsize-options {
          display: flex;
          align-items: center;

          .options-item {
            width: 100rpx;
            height: 50rpx;
            line-height: 50rpx;
            border-radius: 8rpx;
            border: 1rpx solid #ccc;
            font-size: 30rpx;
            text-align: center;
            margin-right: 20rpx;

            &.selected {
              color: #007aff;
              border-color: #007aff;
            }
          }
        }
      }
    }
  }
}
